﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CapaDeGestion;

namespace ApuestasNetInterfaz
{
    public partial class EliminarParticipante : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void GridView1SelectedIndexChanged(object sender, EventArgs e)
        {
            int index = GridView1.SelectedIndex;
            string prueba = GridView1.Rows[index].Cells[1].Text;

            IGestionParticipante nuevaGestion = new GestionParticipante();
            nuevaGestion.Eliminar(Convert.ToInt32(prueba));
            Response.Redirect("EliminarParticipante.aspx");
        }
    }
}